package org.example;

public class Simulator {
    public void playSound(Animal animal){
        System.out.print("这是一只"+animal.getAnimalName()+" 发出的的声音:");
        animal.cry();
    }
}
